package es.castorm.business.customer;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import org.springframework.validation.annotation.Validated;

public interface CustomerService {

	CustomerDTO findCustomer(@NotNull Long id);

	List<CustomerDTO> findCustomers(@NotNull @Valid CustomerCriteriaDTO criteria);

	CustomerDTO createCustomer(@NotNull @Validated CustomerDTO customer);

	CustomerDTO updateCustomer(@NotNull @Validated CustomerDTO customer);

	void deleteCustomer(@NotNull @Validated CustomerDTO customer);
}
